home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / H-I / HyperHackers.cpt / Hyper-Hackers Queue 1.0 / card_23305.txt < prev    next >
Text File  |  1989-02-26  |  3KB  |  81 lines

  1. -- card: 23305 from stack: in.0
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3797
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 1
  9. ----- text -----
  10.  
  11. From: king@entropy.ms.washington.edu (Jim King)
  12.  
  13. Date: 1 Mar 88 19:31:02 GMT
  14.  
  15. In article <43633@sun.uucp>, chuq@plaid.Sun.COM (Chuq Von Rospach) writes:
  16. > This is from Dan Shafer on CompuServe, and is a list of Erata from the first
  17. > edition of his HyperTalk programming book.
  18. **followed by list of errata**
  19.  
  20. Here are a couple of others from the Shafer book:
  21.  
  22. (1) a typo in the handler on page 118 (i should be x) 
  23. > p.155 - First sentence should be edited to read:  "This command will 
  24. > find the "end" in the words blender and weekend as well as in 
  25. > ending."
  26. (2) another on page 155, the command find "5" will not find all the
  27. numbers with the digit 5 but will find only those which *begin* with 5
  28. (or at least that happened when I tried it) whereas find chars "5"
  29. will find them all.  Amusingly enough, Shafer makes a point of
  30. explaining this quite clearly on the previous page.
  31.  
  32. This sense that Shafer hasn't read his own book is heightened by the
  33. errors on 140 and 145 (using repeat for instead of repeat with) which
  34. occur right in the middle of an explanation of the differences in
  35. these two kinds of repeat.
  36.  
  37. I am impressed in a certain sense by Shafer's ability to whip out a
  38. book of this size so fast and I have found some useful information in
  39. it.  At the same time, while some errors are inevitable, it seems that
  40. the scripts in final form could have been extracted (automatically,
  41. with a button!) and checked to see that they worked before shipping
  42. the book out to the unsuspecting multitudes.  While checking the text
  43. would have been a more daunting job, it does seem that Shafer relied a
  44. little too much on what he thought he knew happened instead of trying
  45. it out.
  46.  
  47. As for the Goodman book, it seems more reliable to me so far, but I
  48. did come across a curious passage on page 555.  He is explaining that
  49. the function the Result contains a non-empty string if a Go or Find
  50. fails.  First (no big deal) the message actually returned by FInd in
  51. the Result is not exactly what he says, but more curiously, the
  52. example at the bottom of the page, which involves typing "the result"
  53. (no quotes) in the message box after some failed Go's and Find's
  54. doesn't show anything although the implication is that there should be
  55. an error message.  On the other hand, when I experimented with this,
  56. it was possible to put the Result in Message inside a script.
  57.  
  58. HYPERTALK QUESTION:  Why does the Result only seem accessible in a handler and
  59. not from the message box?  Is the Result local in some sense, or is it
  60. cleared by using the message box?
  61.  
  62. Back to the books:
  63.  
  64. My guess is that it will be some time before we see a really
  65. insightful book about Hypercard that does not come from someone with
  66. an insider's relationship with the development team (when is Carol
  67. Kaehler's book on scripting due out?) because the author will first
  68. have to do enough Hypertalk programming to get some real insights and
  69. then still will have to write the book.  While the insiders' books are
  70. not quite fair to other potential authors' chances, at least these
  71. books give "the rest of us" much better documentation than the Mac had
  72. in the pre-"phonebook edition" Inside Mac days.
  73.  
  74.  
  75.  
  76. -- part contents for background part 45
  77. ----- text -----
  78. Re: Shafer: HyperTalk Programming eratta